home *** CD-ROM | disk | FTP | other *** search
- Path: vb.franken.de!volker
- From: volker@vb.franken.de (Volker Barthelmann)
- Subject: Re: vbcc/vc --> ixemul.library ?
- Newsgroups: comp.sys.amiga.programmer
- References: <rbaron.hxm9@burner.com>
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- Message-ID: <volker.0ek2@vb.franken.de>
- Date: 20 Jan 96 02:17:32 MET
- Organization: home
-
- Ish Hallin (rbaron@burner.com) wrote:
- : After installing the vbcc package the other day, along with PhxAss,
- : PhxLnk, and dcpp, I tried to compile some simple programs. Up popped a
- : requester informing me that I needed the 'ixemul.library'. No problem, I
-
- The distributed vbcc executable was compiled with gcc and therefore needs
- ixemul to run.
-
- : thought, I'll just go get it from that FreshFish CD of mine. After installing
- : ixemul, I realized that this probably meant it needed to link with ixemul in
- : order to produce my code, which it did, producing horribly slow programs.
-
- No. vbcc comes with its own libraries. You don't even need ixemul.library
- to run vbcc if You e.g. recompiled it with itself (but the gcc-compiled
- version is faster at the moment).
-
- : My question is this: How do I avoid linking with ixemul?
-
- If You want to compile and link foo.c simply type
-
- vc foo.c -o foo
-
- For slightly better code add -O2.
- If You want to generate code for higher CPUs/FPUs add -cpu=<cpu> and/or
- -fpu=<fpu>, e.g. -cpu=68020 -fpu=68881 or -cpu=68040 -fpu=68040.
- If Your program uses floating point add -lmieee if You did not specify
- an FPU or -lm881 if You did.
-
- The resulting executable foo will not need ixemul.library.
-
- Volker
-
-